package controlador;
import java.awt.event.ActionEvent;
	import java.awt.event.ActionListener;
	import java.util.ArrayList;
	import modelo.Siniestro;
import vista.VReporteSiniestropormes;
public class CVRSiniestro {
	
	public class CVReporteSiniestro implements ActionListener{
		
		private VReporteSiniestropormes vReporteSiniestro;
		
		public CVReporteSiniestro (ArrayList<Siniestro> siniestro){
		  
			vReporteSiniestro = new VReporteSiniestropormes();
			vReporteSiniestro.setLocationRelativeTo(null);
			vReporteSiniestro.setVisible(true);
			vReporteSiniestro.agregarListener(this);
			
		}

		@Override
		public void actionPerformed(ActionEvent e) {
			// TODO Auto-generated method stub
			//if (e.getActionCommand().equals("Generar Reporte"))
				
			//vReporteSiniestro.setListado(new VModSiniestros(siniestro));
		}
		
		public void cerrarVentana(){
			vReporteSiniestro.setVisible(false);
		}
	}


}
